cmake_minimum_required(VERSION 3.2)

# 项目信息
project (lh_trans)
set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb -std=gnu++11") #-std=c++11
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")
# add_definitions(-DRTMPDUMP_VERSION="v2.4")
#程序名字
set(prg01_name sendflv)
# 程序文件变量
set(prg01_inc_dir PUBLIC)
set(prg01_src)

# 编译动态 lib 库
add_executable(${prg01_name} simplest_librtmp_sendflv.cpp)    
target_link_directories(${prg01_name} PUBLIC lib)
target_link_libraries(${prg01_name} zlog pthread  jsoncpp ssl crypto z rtmp)   
target_include_directories(${prg01_name} PUBLIC include)